import { defHttp } from "@/utils/http";

// ERP 新冠治疗方案主数据API
export const covid19TreatmentApi = {
	// 获得新冠治疗方案主数据分页
	covid19TreatmentList: async (params: any) => {
		return await defHttp.get({ url: `/whs/covid19-treatment/page`, params });
	},
	// 新增新冠治疗方案主数据
	covid19TreatmentCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/covid19-treatment/create`, data });
	},

	// 修改新冠治疗方案主数据
	covid19TreatmentUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/covid19-treatment/update`, data });
	},

	// 删除新冠治疗方案主数据
	covid19TreatmentDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/covid19-treatment/delete?id=` + id });
	}
};
